package cn.iocoder.yudao.module.chatgpt.controller.admin.chat.params.image;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;

@Data
@Schema(description = "图片构建参数")
public class ImageParams {

    @Schema(description = "图片描述",example = "一朵红色的花")
    private String prompt;

    @Schema(description = "画布大小",example = "1024x1024")
    // notes = "256x256 | 512x512 | 1024x1024"
    private String size = "1024x1024";

    @Schema(description = "返回格式",example = "url")
    // notes = "url | b64_json"
    private String response_format = "url";

    @Min(1)
    @Schema(description = "结果数",example = "1")
    // notes = "如果需要返回多个结果可以设置 n > 1",
    private Integer n = 1;

    @Schema(description = "当前用户ID",example = "匿名用户")
    // notes = "用于处理滥用行为",
    private String user;
}
